﻿using System;

namespace Domain.Models
{
    public class MarkComputer
    {
        public Mark GetMark(int trueAnswers, int answersTotal)
        {
            float result = (float)trueAnswers / (float)answersTotal;

            if (result > 0.9)
                return Mark.Excellent;
            if (result > 0.7)
                return Mark.Good;

            throw new Exception("");
        }
    }
}